package com.dfrobot.demo.service;

import com.dfrobot.demo.dao.UserMapper;
import com.dfrobot.demo.domain.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public String test(Integer id, String name) {
        return "Hello:" + name;
    }

    public List<User> getUserList() {
        List<User> userList = this.userMapper.selectAll();
        return userList;
    }
}
